---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: memcached
  namespace: d8-monitoring
  {{- include "helm_lib_module_labels" (list . (dict "prometheus" "main")) | nindent 2 }}
spec:
  jobLabel: app
  sampleLimit: 1500
  endpoints:
    - port: http-metrics
      scheme: http
      honorLabels: true
      relabelings:
        - targetLabel: tier
          replacement: cluster
  selector:
    matchLabels:
      app: memcached
  namespaceSelector:
    matchNames:
      - d8-monitoring
